package com.neuedu.mybatis.controller;


import com.neuedu.mybatis.mapper.UserMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.TimeZone;

@RestController
@Api("用户管理")
public class UmsUserController {


    @Autowired
    UserMapper userMapper;

    @ApiOperation("查询表格")
    @GetMapping ("/test")
    List test(){

        List list = userMapper.list();



        return  list;
    }


    public static void main(String[] args) {
        for (String availableID : TimeZone.getAvailableIDs()) {
            if(availableID.toLowerCase().startsWith("asia")   || availableID.toLowerCase().startsWith("gmt")  ){
                System.out.println(availableID);
            }

        }
    }
}
